﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="EvaluationEditMode.aspx.cs" 
Inherits="BSCMFF.Web.Pages.Evaluation_Setup.EvaluationEditMode" MaintainScrollPositionOnPostback="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<div>
    <telerik:RadAjaxPanel ID="RadAjaxPanelEvaluationDetails" runat="server">
        <bsc:EvaluationDetails ID="ed" runat="server" IsEditMode="true" />
        </telerik:RadAjaxPanel>
    </div>
    <%--<div>
        <fieldset>
            <bsc:EmployeeGroupSelection ID="EGS" runat="server"  />
        </fieldset>

    </div>--%>

        <fieldset>
            <div>
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="LabelEvalTypes" runat="server" Text="Evaluation Parts"></asp:Label>
                        </td>
                        <td rowspan="2">
                            <%--<telerik:RadListBox ID="RadListBoxTypes" runat="server" CheckBoxes="true" Width="300"
                             >
                                <Items>
                                    <telerik:RadListBoxItem Text="Introductory Interview" Value="Interview" Checked="true" />
                                    <telerik:RadListBoxItem Text="Personal KPIs" Value="PKPIs" />
                                    <telerik:RadListBoxItem Text="General Competencies" Value="Competencies" />
                                    <telerik:RadListBoxItem Text="Reward System" Value="Reward" />
                                </Items>
                            </telerik:RadListBox>--%>
                            <asp:CheckBox ID="CheckBoxInterview" runat="server" Text="Introductory Interview" 
                                Checked="true" Enabled="false"/>
                            <br />
                            <asp:CheckBox ID="CheckBoxPKPIs" runat="server" Text="Personal KPIs" />
                            <br />
                            <asp:CheckBox ID="CheckBoxCompetencies" runat="server" Text="General Competencies" />
                            <br />
                            <asp:CheckBox ID="CheckBoxReward" runat="server" Text="Reward System" />

                        </td>
                    </tr>
                    <tr>
                        <td>
                            <telerik:RadButton ID="RadButtonCreateTypes" runat="server" Text="Create"
                            OnClick="RadButtonCreateTypes_Click"
                            ></telerik:RadButton>
                        </td>
                        <td></td>
                    </tr>
                </table>
                
                
                
            </div>
        </fieldset>
<asp:PlaceHolder ID="PlaceHolderParts" runat="server" Visible="false" >
     <asp:PlaceHolder ID="PlaceHolderInterviewPart" runat="server" Visible="false" >   
        <fieldset>
            <div>
                <asp:Panel ID="PanelEvalInterview" runat="server" >
                    Interview
                    <fieldset>
                        <div>
                            <asp:Label ID="LabelInterview" runat="server" 
                            Text="Evaluators will explain, how evaluation works, .. ">
                            </asp:Label>
                        </div>
                        <br />
                        <div>
                            <asp:Label ID="LabelDateOfInterview" runat="server" Text="Date Of Interview" ></asp:Label>
                            <telerik:RadDatePicker ID="RadDatePickerDateOfInterview" runat="server" Enabled="false" ></telerik:RadDatePicker>
                        </div>
                    </fieldset>
                </asp:Panel>
            </div>
        </fieldset>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PlaceHolderPKPIsPart" runat="server" Visible="false" >
        <fieldset>
            <div>
                <asp:Panel ID="Panel1" runat="server" >
                    PKPIs
                    <fieldset>
                        <div>
                            <asp:Label ID="LabelCascade" runat="server" 
                            Text="Evaluators will set Personal KPIs by cascading from strategic KPIs">
                            </asp:Label>
                            <br /><br />
                            <asp:Label ID="LabelOrientationScale" runat="server" 
                            Text="Orientation Scale">
                            </asp:Label>

                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="LabelMinScore" runat="server" Text="Min" ></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="LabelCurrentMinScore" runat="server" Text="0" ></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="LabelTo1" runat="server" Text="To" ></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="RadNumericTextBoxTo1" runat="server" 
                                            MinValue="0" MaxValue="120" Value="40" ShowSpinButtons="true"
                                            Width="40">
                                        <NumberFormat DecimalDigits="0" />    
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="RadTextBoxVerbal1" runat="server" 
                                        Text="Employee doesn't full fill his targets" Width="300"></telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="LabelFrom2" runat="server" Text="From" ></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="RadNumericTextBoxFrom2" runat="server" 
                                            MinValue="0" MaxValue="120" Value="41" ShowSpinButtons="true"
                                            Width="40">
                                        <NumberFormat DecimalDigits="0" />    
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="LabelTo2" runat="server" Text="To" ></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="RadNumericTextBoxTo2" runat="server" 
                                            MinValue="0" MaxValue="120" Value="60" ShowSpinButtons="true"
                                            Width="40">
                                        <NumberFormat DecimalDigits="0" />    
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="RadTextBoxVerbal2" runat="server" 
                                        Text="Employee should work harder" Width="300"></telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label5" runat="server" Text="From" ></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="RadNumericTextBoxFrom3" runat="server" 
                                            MinValue="0" MaxValue="120" Value="61" ShowSpinButtons="true"
                                            Width="40">
                                        <NumberFormat DecimalDigits="0" />    
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label6" runat="server" Text="To" ></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="RadNumericTextBoxTo3" runat="server" 
                                            MinValue="0" MaxValue="120" Value="80" ShowSpinButtons="true"
                                            Width="40">
                                        <NumberFormat DecimalDigits="0" />    
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="RadTextBoxVerbal3" runat="server" 
                                        Text="Good Employee" Width="300"></telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label7" runat="server" Text="From" ></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="RadNumericTextBoxFrom4" runat="server" 
                                            MinValue="0" MaxValue="120" Value="81" ShowSpinButtons="true"
                                            Width="40">
                                        <NumberFormat DecimalDigits="0" />    
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label8" runat="server" Text="To" ></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="RadNumericTextBoxTo4" runat="server" 
                                            MinValue="0" MaxValue="120" Value="100" ShowSpinButtons="true"
                                            Width="40">
                                        <NumberFormat DecimalDigits="0" />    
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="RadTextBoxVerbal4" runat="server" 
                                        Text="Great Employee" Width="300"></telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label9" runat="server" Text="From" ></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="RadNumericTextBoxFrom5" runat="server" 
                                            MinValue="0" MaxValue="120" Value="101" ShowSpinButtons="true"
                                            Width="40">
                                        <NumberFormat DecimalDigits="0" />    
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label10" runat="server" Text="Max" ></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label11" runat="server" Text="120" ></asp:Label>
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="RadTextBoxVerbal5" runat="server" 
                                        Text="Excelent Employee" Width="300"></telerik:RadTextBox>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </fieldset>
                </asp:Panel>
            </div>
        </fieldset>
    
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PlaceHolderCompetenciesPart" runat="server" Visible="false" >
        <fieldset>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
            </telerik:RadAjaxLoadingPanel>
            <telerik:RadAjaxPanel ID="RadAjaxPanelCategories" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                <div>
                    <asp:Label ID="LabelCompetencies" runat="server" Text="General Competencies" ></asp:Label>
                    <asp:PlaceHolder ID="PlaceHolderCategories" runat="server" >
                
                    <%--    <bsc:EvaluationQuestionCategory ID="EQC0" runat="server" OnEventAddCategory="AddCategory" >
                        </bsc:EvaluationQuestionCategory>
                    --%>
                        <%--<asp:HiddenField ID="HiddenFieldCurrentNumQuestions" runat="server" Value="5"></asp:HiddenField>
                        <asp:HiddenField ID="HiddenFieldMin" runat="server" Value="1"></asp:HiddenField>
                        <asp:HiddenField ID="HiddenFieldMax" runat="server" Value="5"></asp:HiddenField>--%>

                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory0" runat="server" Visible="false"  />
                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory1" runat="server" Visible="false"  />
                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory2" runat="server" Visible="false"  />
                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory3" runat="server" Visible="false"  />
                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory4" runat="server" Visible="false"  />
                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory5" runat="server" Visible="false"  />
                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory6" runat="server" Visible="false"  />
                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory7" runat="server" Visible="false"  />
                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory8" runat="server" Visible="false"  />
                        <bsc:EvaluationQuestionCategory ID="EvaluationQuestionCategory9" runat="server" Visible="false"  />
                    </asp:PlaceHolder>
                </div>
                <div style="float:right">
                    <telerik:RadButton ID="RadButtonAddCategory" runat="server" Visible="true" Text="Add Category" 
                    OnClick="RadButtonAddCategory_Click"></telerik:RadButton>
                    <telerik:RadButton ID="RadButtonDeleteCategory" runat="server" Visible="true" Text="Delete Category" 
                    OnClick="RadButtonDeleteCategory_Click"></telerik:RadButton>
                </div>
            </telerik:RadAjaxPanel>
        </fieldset>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PlaceHolderRewardPart" runat="server" Visible="false" >
        <fieldset>
            <div>
                <%--<asp:Panel ID="PanelReward" runat="server" Visible="false" >--%>
                    <asp:Label ID="LabelReward" runat="server" Text="Reward"></asp:Label>
                    <fieldset>
                        <div>
                            <asp:Label ID="Label1" runat="server" 
                            Text="This Part serves for conditional rewarding system">
                            </asp:Label>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Label ID="LabelTestOnly" runat="server" 
                                        Text="For Testing Purpose Only">
                                        </asp:Label>
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="CheckBoxTestOnly" runat="server" ToolTip="Is it real or testing reward system?" />
                                    </td>
                                </tr>
                            </table>
                            <br /><br />
                            <asp:Panel ID="PanelRewardPKPISettings" runat="server" Visible="false" >
                                <asp:Label ID="Label2" runat="server" 
                                        Text="Settings for Personal KPI achievment">
                                        </asp:Label>
                                        <br /><br />
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label3" runat="server" 
                                            Text="Reward From Score">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxPKPIsFrom" runat="server" 
                                                MinValue="0" MaxValue="120" Width="30" Value="80">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td style="padding-left:20px">
                                            <asp:Label ID="Label12" runat="server" 
                                            Text="Bonus Percentage From">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxMinCoef" runat="server" 
                                                MinValue="0" MaxValue="100" Width="30" Value="5"
                                                Type="Percent">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label4" runat="server" 
                                            Text="Reward To">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label13" runat="server" 
                                            Text="120">
                                            </asp:Label>
                                        </td>
                                        <td style="padding-left:20px">
                                            <asp:Label ID="Label14" runat="server" 
                                            Text="Bonus Percentage To">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxMaxCoef" runat="server" 
                                                MinValue="0" MaxValue="100" Width="30" Value="15"
                                                Type="Percent">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <br />
                            <asp:Panel ID="PanelRewardCompetenciesSetting" runat="server" Visible="false" >
                                <asp:Label ID="Label15" runat="server" 
                                        Text="Settings for General Competencies achievement">
                                        </asp:Label>
                                        <br /><br />
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label16" runat="server" 
                                            Text="Reward Top">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxCompetencyTop" runat="server" 
                                                MinValue="0" MaxValue="100" Width="30" Value="10" Type="Percent">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label17" runat="server" 
                                            Text="Employees">
                                            </asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label20" runat="server" 
                                            Text="Bonus Percentage">
                                            </asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="RadNumericTextBoxCompetencyCoef" runat="server" 
                                                MinValue="0" MaxValue="100" Width="30" Value="10"
                                                Type="Percent">
                                                <NumberFormat DecimalDigits="0" />
                                            </telerik:RadNumericTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </div>
                    </fieldset>
                <%--</asp:Panel>--%>
            </div>
        </fieldset>
    
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PlaceHolderOveralEval" runat="server" Visible="true">
        <fieldset>
            <table>
                <tr>
                    <td valign="top">
                        <asp:Label ID="LabelOveralEvaluatorEval" runat="server" Text="Overal Evaluator Evaluation" ></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBoxOveralEvaluatorEval" runat="server" TextMode="MultiLine"
                        Height="50" Width="600" Enabled="false">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <asp:Label ID="LabelEmployeeReaction" runat="server" Text="Employee Reaction" ></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBoxEmployeeReaction" runat="server" TextMode="MultiLine"
                        Height="50" Width="600" Enabled="false">
                        </telerik:RadTextBox>
                    </td>
                </tr>
            </table>
            
        </fieldset>
    </asp:PlaceHolder>
</asp:PlaceHolder>
        <%--<fieldset>
            <div>
                <asp:Panel ID="PanelEvalQuestionnaire" runat="server" >
                
                </asp:Panel>
            </div>
        </fieldset>--%>
        <br /><br />
        <telerik:RadButton ID="RadButtonSave" runat="server" Text="Save" 
        OnClick="SaveEvaluation" ValidationGroup="Details"></telerik:RadButton>


        <%--<telerik:RadButton ID="RadButtonUpdate" runat="server" Text="Update" 
        OnClick="UpdateEvaluation" ValidationGroup="Details"></telerik:RadButton>--%>
        
        <telerik:RadButton ID="RadButtonCancel" runat="server" Text="Cancel" 
         CausesValidation="false" onclick="RadButtonCancel_Click"></telerik:RadButton>

        <telerik:RadButton ID="RadButtonDelete" runat="server" Text="Delete" Visible="false"
         CausesValidation="false" onclick="RadButtonDelete_Click"></telerik:RadButton>
        <br /><br /><br /><br /><br /><br />
</asp:Content>
